<?php
//网站配置的删除
	include_once("./com.php");
function msg($msg, $url=''){
		if($url == ''){
			$ad = "window.history.go(-1)";
		}else{
			$ad = "window.location.href='{$url}'";
		}
		exit("<script>alert('{$msg}');{$ad};</script>");
	}


	$id=$_GET['id'];
//print_r($_GET);print_r($_POST);exit;

/*if (id=='2' or id=='3' or id=='5' or id=='6' or $id=='28' or $id=='26' or $id=='27'){
	echo "<script>
				alert('该配置项无法删除')
				location.href='conf_delete.php'
			</script>";
exit;	
}
*/
	$ser="delete from system where id=$id";

	

if ($id=='2' or $id=='3' or $id=='5' or $id=='6' or $id=='17'){
	
			msg("该配置项无法删除","./conf_add.php");
		exit;

}

$res=mysql_query($ser);
	if(mysql_affected_rows()>0){
		
			msg("删除成功","./conf_add.php");
		exit;
	}else{
		
		msg("删除失败","./conf_add.php");
		exit;
	}





?>